/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.dao;

import javax.persistence.EntityManagerFactory;
import org.hibernate.Session;

/**
 *
 * @author ChengJiLi
 */
public class LocalData {
    public static Session getSession(){
        return H2Provider.getOpenSession();
    }
    public static EntityManagerFactory getFactory(){
        return H2JPAProvider.getFactory();
    }
}
